MVendorOrderHistoryPg.widgets = {
	lvOrderItems: ["wm.LiveVariable", {"autoUpdate":false,"inFlightBehavior":"executeLast","startUpdate":false,"type":"com.servicelivedb.data.OrderItems"}, {}, {
		liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.OrderItems","related":["items"],"view":[
{"caption":"OrderItemId","sortable":true,"dataIndex":"orderItemId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":11000,"subType":null,"widthUnits":"px"},
{"caption":"Quantity","sortable":true,"dataIndex":"quantity","type":"java.lang.Short","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":11001,"subType":null,"widthUnits":"px"},
{"caption":"Price","sortable":true,"dataIndex":"price","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":11002,"subType":null,"widthUnits":"px"},
{"caption":"Comments","sortable":true,"dataIndex":"comments","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":11003,"subType":null,"widthUnits":"px"},
{"caption":"Status","sortable":true,"dataIndex":"status","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":11004,"subType":null,"widthUnits":"px"},
{"caption":"DlvrQuantity","sortable":true,"dataIndex":"dlvrQuantity","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":11005,"subType":null,"widthUnits":"px"},
{"caption":"ItemId","sortable":true,"dataIndex":"items.itemId","type":"java.lang.Integer","displayType":"Number","required":true,"widthUnits":"px","includeLists":true,"includeForms":true,"order":12000},
{"caption":"ItemName","sortable":true,"dataIndex":"items.itemName","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":12001},
{"caption":"ItemDesc","sortable":true,"dataIndex":"items.itemDesc","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":12002},
{"caption":"Price","sortable":true,"dataIndex":"items.price","type":"java.math.BigDecimal","displayType":"Number","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":12005},
{"caption":"Unit","sortable":true,"dataIndex":"items.unit","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":12007}
]}, {}],
		binding: ["wm.Binding", {}, {}, {
			wire: ["wm.Wire", {"expression":undefined,"source":"list3.selectedItem.orderId","targetProperty":"filter.order.orderId"}, {}]
		}]
	}],
	ncOrderStatusUpdate: ["wm.NotificationCall", {"operation":"toast"}, {}, {
		input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire: ["wm.Wire", {"expression":"\"Order status updated successfully\"","targetProperty":"text"}, {}],
				wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}],
				wire2: ["wm.Wire", {"expression":"\"Success\"","targetProperty":"cssClasses"}, {}],
				wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}]
			}]
		}]
	}],
	ncOrderUpdateSuccess: ["wm.NotificationCall", {"operation":"toast"}, {}, {
		input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire: ["wm.Wire", {"expression":"\"Order Status Updated Successfully\"","targetProperty":"text"}, {}],
				wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}],
				wire2: ["wm.Wire", {"expression":"\"Success\"","targetProperty":"cssClasses"}, {}],
				wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}]
			}]
		}]
	}],
	ncOrderUpdateError: ["wm.NotificationCall", {"operation":"toast"}, {}, {
		input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}],
				wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}],
				wire: ["wm.Wire", {"expression":"\"Error ocureed during status update\"","targetProperty":"text"}, {}],
				wire2: ["wm.Wire", {"expression":"\"Error\"","targetProperty":"cssClasses"}, {}]
			}]
		}]
	}],
	svVendorOrderHistory: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","maxResults":25,"operation":"getVendorOrderHistory","service":"serviceliveDB"}, {"onResult":"svVendorOrderHistoryResult"}, {
		input: ["wm.ServiceInput", {"type":"getVendorOrderHistoryInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire: ["wm.Wire", {"expression":"\"Partly Delivered\"","targetProperty":"statusPartly"}, {}],
				wire1: ["wm.Wire", {"expression":"\"Delivered\"","targetProperty":"statusNew"}, {}]
			}]
		}]
	}],
	ldOrders: ["wm.LoadingDialog", {"caption":"Loading Orders..","captionWidth":"100px","serviceVariableToTrack":["svVendorOrderHistory"],"styles":{}}, {}, {
		binding: ["wm.Binding", {}, {}, {
			wire: ["wm.Wire", {"expression":undefined,"source":"layoutBox1","targetProperty":"widgetToCover"}, {}]
		}]
	}],
	ldOrdersItems: ["wm.LoadingDialog", {"caption":"Loading Order Details..","captionWidth":"150px","serviceVariableToTrack":["lvOrderItems"],"styles":{}}, {}, {
		binding: ["wm.Binding", {}, {}, {
			wire: ["wm.Wire", {"expression":undefined,"source":"layoutBox1","targetProperty":"widgetToCover"}, {}]
		}]
	}],
	layoutBox1: ["wm.Layout", {"horizontalAlign":"left","styles":{},"verticalAlign":"top"}, {}, {
		layers1: ["wm.Layers", {"defaultLayer":0}, {}, {
			layerOrder: ["wm.Layer", {"borderColor":"","caption":"layer1","horizontalAlign":"left","themeStyleType":"","verticalAlign":"top"}, {}, {
				panel1: ["wm.Panel", {"height":"100%","horizontalAlign":"left","styles":{},"verticalAlign":"top","width":"100%"}, {}, {
					panel2: ["wm.Panel", {"border":"1","borderColor":"#e11e1e","height":"35px","horizontalAlign":"left","layoutKind":"left-to-right","styles":{"borderRadius":"8px","backgroundColor":"#f26a6a"},"verticalAlign":"top","width":"100%"}, {}, {
						selectDays: ["wm.SelectMenu", {"border":"0","caption":"View Orders for last ","captionAlign":"left","captionSize":"165px","dataField":"dataValue","dataValue":undefined,"desktopHeight":"35px","displayField":"dataValue","displayValue":"","height":"35px","options":"1,2,3,4,5,6,7,8,9,10,15,30","styles":{},"width":"250px"}, {"onchange":"selectDaysChange"}],
						label1: ["wm.Label", {"caption":"Days","height":"100%","padding":"4","styles":{},"width":"50px"}, {}]
					}],
					panelNoResults: ["wm.Panel", {"border":"1","borderColor":"#7c7474","height":"30px","horizontalAlign":"left","layoutKind":"left-to-right","showing":false,"styles":{},"verticalAlign":"top","width":"100%"}, {}, {
						labelNoResults: ["wm.Label", {"align":"center","caption":"No results found..","height":"30px","padding":"4","styles":{"backgroundColor":"#b79c9c"},"width":"100%"}, {}]
					}],
					list3: ["wm.List", {"_classes":{"domNode":["MobileListStyle"]},"borderColor":"","columns":[
{"show":false,"field":"customerName","title":"CustomerName","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"vendorName","title":"VendorName","width":"100%","align":"left","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":false,"field":"status","title":"Status","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"blockName","title":"BlockName","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"doorName","title":"DoorName","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"vendorId","title":"VendorId","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"price","title":"Price","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customerId","title":"CustomerId","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"address","title":"Address","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"contactNum","title":"ContactNum","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"orderDt","title":"OrderDt","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"orderId","title":"OrderId","width":"100%","align":"left","formatFunc":"list3OrderIdFormat","editorProps":{"restrictValues":true},"mobileColumn":true},
{"show":false,"field":"comment","title":"Comment","width":"30px","align":"right","formatFunc":"list3CommentFormat","mobileColumn":true},
{"show":false,"field":"PHONE COLUMN","title":"-","width":"100%","align":"left","editorProps":{"restrictValues":true},"expression":"","mobileColumn":false},
{"show":false,"field":"vendorComment","title":"VendorComment","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"vendor_comment","title":"Vendor_comment","width":"100%","align":"left","formatFunc":"","mobileColumn":false}
],"headerVisible":false,"height":"100%","isNavigationMenu":true,"margin":"0","minHeight":0,"minWidth":0,"padding":"0,0,0,0","styleAsGrid":false,"styles":{}}, {"onSelect":"layerOredereItems","onSelect1":"lvOrderItems","onSelect2":"list3Select2"}, {
						binding: ["wm.Binding", {}, {}, {
							wire: ["wm.Wire", {"expression":undefined,"source":"svVendorOrderHistory","targetProperty":"dataSet"}, {}]
						}]
					}]
				}]
			}],
			layerOredereItems: ["wm.Layer", {"borderColor":"","caption":"layer1","horizontalAlign":"left","themeStyleType":"","verticalAlign":"top"}, {}, {
				panel5: ["wm.Panel", {"autoScroll":true,"height":"100%","horizontalAlign":"center","verticalAlign":"top","width":"100%"}, {}, {
					mbBackToResults: ["wm.MobileIconButton", {"border":"0","desktopHeight":"35px","direction":"back","height":"35px","mobileHeight":"35px","showing":false}, {"onclick":"layerOrder"}],
					list2: ["wm.List", {"_classes":{"domNode":["MobileListStyle"]},"columns":[
{"show":true,"field":"orderItemId","title":"OrderItemId","width":"100%","align":"left","formatFunc":"list2OrderItemIdFormat","editorProps":{"restrictValues":true},"expression":"","mobileColumn":true},
{"show":false,"field":"quantity","title":"Quantity","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"price","title":"Price","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"comments","title":"Comments","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"items.itemId","title":"Items.itemId","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"items.itemName","title":"Items.itemName","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"items.itemDesc","title":"Items.itemDesc","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"PHONE COLUMN","title":"-","width":"100%","align":"left","expression":"","mobileColumn":false},
{"show":false,"field":"status","title":"Status","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"dlvrQuantity","title":"DlvrQuantity","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"items.price","title":"Items.price","width":"80px","displayType":"Number","align":"left","formatFunc":""},
{"show":false,"field":"items.unit","title":"Items.unit","width":"100%","displayType":"Text","align":"left","formatFunc":""}
],"headerVisible":false,"height":"100%","margin":"1","minHeight":0,"minWidth":0,"padding":"0","selectionMode":"none","styleAsGrid":false,"styles":{}}, {}, {
						binding: ["wm.Binding", {}, {}, {
							wire: ["wm.Wire", {"expression":undefined,"source":"lvOrderItems","targetProperty":"dataSet"}, {}],
							wire1: ["wm.Wire", {"expression":undefined,"source":"list1.emptySelection","targetProperty":"disabled"}, {}]
						}]
					}],
					labelOrderDetailsList: ["wm.Label", {"align":"left","autoSizeHeight":true,"border":"1","margin":"10,0,0,0","padding":"4","showing":false,"singleLine":false,"styles":{"backgroundColor":"#d32f2f","borderRadius":"4px","fontFamily":"Verdana","color":"#ffffff","fontSize":"12px"},"width":"95%"}, {}]
				}]
			}]
		}]
	}]
}